package cn.john.hrm.service;

import cn.john.hrm.dto.SmsDto;
import cn.john.hrm.util.AjaxResult;

import javax.validation.Valid;
import java.io.IOException;

public interface IVerifyCodeService {
    /**
     * 图片验证码
     * @param key
     * @return
     * @throws IOException
     */
    AjaxResult imageCode(String key) throws IOException;

    /**
     * 手机短信验证码
     * @param smsDto
     * @return
     */
    AjaxResult sendSmsCode(@Valid SmsDto smsDto);
}
